package com.ics.dao.hibernate;

import com.ics.dao.CommodityTeamDao;
import com.ics.dao.RoleDao;
import com.ics.model.CommodityTeam;
import com.ics.model.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 11-10-31
 * Time: 下午3:45
 * To change this template use File | Settings | File Templates.
 */
@Repository ("commodityTeamDao")
public class CommodityTeamDaoHibernate extends GenericDaoHibernate<CommodityTeam,Long> implements CommodityTeamDao{

    public CommodityTeamDaoHibernate() {
        super(CommodityTeam.class);
    }

    public List getCommodityTeams() {
        List commodityTeams=this.getHibernateTemplate().find("from CommodityTeam c");
        return commodityTeams;
    }
}
